package main

import (
	"cn/res"

	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/widget"
)

func main() {
	myApp := app.New()

	myApp.Settings().SetTheme(&res.MyTheme{})
	myWin := myApp.NewWindow("中文字体")

	label := widget.NewLabel("中文")
	myWin.SetContent(label)
	myWin.Resize(fyne.NewSize(150,50))
	myWin.ShowAndRun()
}
